<%@ page language="java" contentType="text/html; charset=UTF-8"	%>
<%@ include file="/basecore/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>日志</title>
		<%@ include file="/basecore/meta.jsp"%>				
	</head>
	<body>		
		<form name="appForm" action="metaAppController.wit" method="post">			
			<div align=right class="fix-operation" style="font-size: 11px;">
				【 操作时间：<input name="_durationInputField" id="_durationInputField" class="input-text" style="width:80px"/>
				<wit:searchExpression expression="eq(duration,_durationInputField)"/>	
				<wit:dateTimePicker inputField="_durationInputField" format="%Y-%m-%d" />				
				用户:<input name="_usernameInputField" id="_usernameInputField" class="input-text" style="width:80px"/>
				<wit:searchExpression expression="like(username,_usernameInputField,R)" />	
				<wit:selectDialog id="loguser" dialogTitle="请选择用户"
					data="AD_USER" datatype="table" properties="username" 
					field1="identity" property1="id" field2="_usernameInputField" property2="username"
					width="600" height="400" 
					titles="username:用户名"
					icon="${contextPath}/webresource/images/user.png"
				/>							 
				】或【 <input name="_s_anonyme" class="input-text" style="width:80px" id="fullSearch" >】
	  			<a href="#" onclick="query(appForm,'loggingController.wit')">
	  				<img src="${contextPath}/webresource/images/operation/search.gif">
	  			</a>
			</div>			
			<ec:table items="logList" var="app" tableId="log" width="100%"
				action="loggingController.wit"  	
				ajax="true"	state="persist"	form="appForm"				
				hasComplexTitle="true" 
				>	
				<ec:exportXls fileName="应用.xls"></ec:exportXls>	
				<ec:row >
					<ec:column property="ROWCOUNT" title=" " sortable="false" width="3%" viewsAllowed="html">
						${ROWCOUNT}
					</ec:column>					
					<ec:column  property="username" alias="username" title="用户" />					
					<ec:column  property="duration"  alias="duration"  title="时间"  />
					<ec:column  property="operation" alias="operation"  title="操作名称"/>	
					<ec:column  property="clientIp" alias="clientIp"  title="客户端IP地址"/>	
					<ec:column  property="transactionData" alias="transactionData"  title="备注"/>					
				</ec:row>
			</ec:table>		
			</form>
	</body>

</html>